package com.hwtx.form.domain.listener;

import com.hwtx.form.domain.handle.FormDataHandle;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.Map;

@Getter
public class DynamicChangeFormHandleEvent extends ApplicationEvent {
    private final Map<String, FormDataHandle> handles;
    private final boolean create;

    public DynamicChangeFormHandleEvent(Object source, Map<String, FormDataHandle> handles, boolean create) {
        super(source);
        this.handles = handles;
        this.create = create;
    }
}